<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <link rel="stylesheet" type="text/css" href="AppStore/Public/bootstrap/css/bootstrap.min.css"/>
    <meta charset="UTF-8">
    <title>修改视频信息</title>
    <link href="/AppStore/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/AppStore/Public/bootstrap/js/jquery.min.js" type="text/javascript"></script>
    <script src="/AppStore/Public/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>


</head>

<body>
<!--自动接收updateUserInfo方法传来的user变量-->

<div class="container">

<form class="form-horizontal" method="post" action="update" enctype="multipart/form-data" >
    <!--隐藏id-->
    <input type="hidden" name="id" value="<?php echo ($video["id"]); ?>"><!-- 隐藏ID -->
    <div class="form-group ">
        <label for="videoname" class="col-md-2 control-label">视频名</label>
        <div class="col-md-5">
            <input type="text" class="form-control" id="videoname" name="videoname" placeholder="videoname" value="<?php echo ($video["videoname"]); ?>"><!-- name="username"必须有，和数据库字段一样，不然不能插入数据库 -->
            
        </div>
    </div>
    

    <!-- <div class="form-group">
        <label for="pass2" class="col-md-2 control-label">确认密码</label>
        <div class="col-md-5">
            <input type="password" class="form-control" id="pass2" name="pass2" placeholder="confirm pass">
        </div>
    </div> -->

    

    <div class="form-group">
        <label for="photo" class="col-md-2 control-label">海报</label>
        <div class="col-md-3">
            <img clas="img-rounded" id="photo" src="/AppStore/Public/Uploads/photo/<?php echo ($video["photo"]); ?>" alt="..."/>
        </div>
    </div>
    <div class="form-group">
        <label for="photo" class="col-md-2 control-label">修改海报</label>
        <div class="col-md-2">
            <input type="file" id="photo" name="photo" value="<?php echo ($video["photo"]); ?>">
        </div>
    </div>

    <div class="form_group">
        <label for="intro" class="col-md-2 control-label">内容简介</label>
        <div class="col-md-10">
            <textarea class="form-control" rows="5" cols="50" id="intro" name="intro">
                <?php echo ($video["intro"]); ?>
            </textarea>
        </div>
    </div>

    

    <div class="form_group">
        <label for="isfirst" class="col-md-2 control-label">首页推荐</label>
        <div class="col-md-10">
            <label class="radio-inline" >
                <input type="radio" name="isfirst" id="isfirst" value="1"
                <?php if($user["isfirst"] == 1): ?>checked<?php endif; ?>   >是
            </label>
            <label class="radio-inline">
                <input type="radio" name="is" id="is2" value="0"
                <?php if($user["isfirst"] == 0): ?>checked<?php endif; ?>   >否
            </label>
        </div>
    </div>

    <div class="form-group">
        <label for="tid" class="col-md-2 control-label">视频类型</label>
        <div class="col-md-2">
            <select class="form-control" name="state" id="state">
                <option value="0" <?php if($video["tid"] == 0): ?>selected<?php endif; ?>>电视剧</option>
                <option value="1" <?php if($video["tid"] == 1): ?>selected<?php endif; ?>>电影</option>
                <option value="2" <?php if($video["tid"] == 2): ?>selected<?php endif; ?>>动漫</option>
            </select>
        </div>
    </div>
    <div class="col-md-2 col-md-offset-5">
        <button type="submit" class="btn btn-default">修改视频</button>
    </div>


</form>
</div>
</body>
</html>